import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2023-08-11
 * Time: 9:20
 */
public class Learning {
    public static void main1(String[] args) {
        /*System.out.println(11.5%2);*/

/*        int a=11;
        a=a--;
        System.out.println(a);*/

/*        int a=23;
        int b=56;
        //System.out.println(a<b<78);
        System.out.println(a<b==true);*/

/*        System.out.println(101>120 & 10/0==0);
        System.out.println(101<120 | 10/0==0);*/

/*        int a=10;
        int b=20;

        a>b?1:3;
        //System.out.println(c);*/

/*        int a=34;
        if(a>0) {
            System.out.println(a);
        }

        if(a>0) {
            System.out.println("a>0");
        } else{
            System.out.println("a<0");
        }

        a=0;
        if(a>0) {
            System.out.println("a>0");
        }else if(a==0){
            System.out.println("a==0");
        }else{
            System.out.println("a<0");
        }
        */

/*        int a=10;
        if(a%2==0){
            System.out.println("a是偶数");
        }else{
            System.out.println("a是奇数");
        }*/

    /*    int year=2023;
        if(year%100==0){
            if(year%400==0){
                System.out.println("闰年");
            }else{
                System.out.println("不是闰年");
            }
        }else{
            if(year%4==0){
                System.out.println("闰年");
            }else{
                System.out.println("不是闰年");
            }
        }*/

  /*      int a=20;
        if(a!=20);{
            System.out.println("haha");
        }*/

/*        boolean flag1=true==true?false:true==true?true:false;
        boolean flag2=true==false?false:true==true?true:false;
        System.out.println(flag1);
        System.out.println(flag2);*/

/*        System.out.println("\\ \" hello \\ \" ");
        System.out.println("\\");
        System.out.println("\\"hello\\"");
        System.out.println("/\hello/\"");*/

/*        short a=128;//0000 0000 1000 0000
        byte b=(byte)a;//1000 0000
        System.out.println(b);*/

/*        int a=5;
        System.out.println(!a);*/
/*

        int num=1;
        switch(num){
            case 1:
                System.out.println("hehe");
                break;
            case 2:
                System.out.println("wowo");
                break;

        }
*/

/*        int day=1;
        switch(day){
            case 1:
                System.out.println("周一");
                //break;
            case 2:
                System.out.println("周二");
                break;
        }*/

/*        int a=11;
        switch(a>10){
            case 1:
                System.out.println("wowo");
                break;

        }*/

/*        int num=1;
        while(num<=10){
            System.out.println(num);
            num++;
        }*/

 /*       int i=1;

        int sum=0;
        while(i<=5){
            int result=1;
            int temp=1;
            while(temp<=i){
                result*=temp;
                temp++;
            }
            sum+=result;
            i++;
        }
        System.out.println(sum);*/

/*        int num=1;
        while(num<=2);{
            System.out.println(num);
            num++;
        }*/

/*        int num=100;
        while(num<=200){
            if(num%3==0){
                System.out.println(num);
                break;
            }
            num++;
        }*/

/*        int num=100;
        while(num<=200){
            if(num%3==0){
                System.out.println(num);
                num++;
                continue;
            }
            num++;
        }*/

/*        int num=100;
        int sum=0;
        for (int k = 1; k <=num ; k++) {
            sum+=k;
        }
        System.out.println("sum="+sum);*/

/*        int result=1;
        for (int i = 1; i <=5; i++) {
            result*=i;
        }
        System.out.println("result="+result);

    }*/
/*        int num = 5;
        int sum = 0;
        for (int i = 1; i <= num; i++) {
            int result = 1;
            for (int j = 1; j <= i; j++) {
                result *= j;
            }
            sum += result;
        }
        System.out.println(sum);
        System.out.print(sum);
        System.out.printf("%d\n",sum);*/



/*        System.out.println("请输入年龄");
        int age=scan.nextInt();
        System.out.println(age);
        scan.nextLine();
        System.out.println("请输入名字");
        String nam=scan.nextLine();
        System.out.println(nam);

        System.out.println("请输入工资");
        float salary=scan.nextFloat();
        System.out.println(salary);*/


/*        int sum=0;
        Scanner scan=new Scanner(System.in);
        while(scan.hasNextInt()){
            int temp=scan.nextInt();
            sum+=temp;
        }
        System.out.println(sum);
        scan.close();*/
/*        int num=13;
        int flag=0;
        for (int i = 2; i <Math.sqrt(num) ; i++) {
            if(num%i==0){
                System.out.println("不是素数");
                flag=1;
                break;
            }
        }
        if(flag!=1){
            System.out.println("是素数");
        }*/

/*        int flag=0;
        for (int num  = 2; num<=100 ; num++) {
            for (int j = 2; j <=Math.sqrt(num) ; j++) {
                if(num%j==0){
                    flag=1;
                    break;
                }
            }
            if(flag==0){
                System.out.printf("%d ",num);
            }
            flag=0;
        }*/


 /*       for (int year =1000; year <=2000; year++) {
            if(year%100==0){
                if(year%400==0){
                    System.out.print(" "+year);
                }
            }else{
                if(year%4==0){
                    System.out.print(" "+year);
                }
            }
        }*/


/*        for (int i = 1; i <=9 ; i++) {
            for (int j = 1; j <=i ; j++) {
                System.out.print(j+"*"+i+"="+i*j+" ");
            }
            System.out.println();
        }*/

/*        int a=45;
        int b=54;
        int c=a%b;
        while(c!=0){
            a=b;
            b=c;
            c=a%b;
        }
        System.out.println(b);*/

 /*       for (int i = 1; i <9999; i++) {
            int temp=i;
            int count=0;
            //求该数的位数
            while(temp!=0){
                count++;
                temp/=10;
            }
            //该数各个位置上的数字
            temp=i;
            int sum=0;
            while(temp!=0){
                sum+=Math.pow(temp%10,count);
                temp/=10;
            }*/

 /*           if(sum==i){
                System.out.print(" "+i);
            }
        }*/

/*        int n=7;
        int count=0;
        for (int i = 1; i <=32; i++) {
            if((n&1)!=0){
                count++;
            }
            n=n>>1;
        }
        System.out.println(count);*/

/*        int n=-1;
        int count=0;
        while(n!=0) {
            if((n&1)!=0){
                count++;
            }
            n=n>>>1;
        }
        System.out.println(count);*/

/*        int n=7;
        int count=0;
        while(n!=0) {
            n=n&(n-1);
            count++;
        }
        System.out.println(count);*/

/*        int n=7;
        for (int i =31; i>=0 ; i-=2) {
            System.out.print(" "+((n>>i)&1));
        }
        System.out.println();
        for (int i =30; i>=0 ; i-=2) {
            System.out.print(" "+((n>>i)&1));
        }*/

        //System.out.println(isLeapYear(2023));
    }
/*    public static boolean isLeapYear(int year){
        if((year%4==0&& year%100!=0)||(year%400==0)){
            return true;
        } else {
            return false;
        }
    }*/

    public static void main(String[] args) {
        int sum=0;
        for (int i = 1; i <=5 ; i++) {
            sum+=fa(i);
        }
        System.out.println(sum);
    }

    public static  int fa(int n){
        int result=1;
        for (int i = 1; i <=n ; i++) {
            result*=i;
        }
        return result;
    }
}
